package http;

import java.util.ArrayList;
import java.util.List;
import java.util.SortedMap;
import java.util.TreeMap;

import org.xml.sax.Attributes;

public class XmlHelperElement {
	public String uri;
	public String name;
	public String qName;
	public SortedMap<String,String> atts = new TreeMap<String,String>();
	public XmlHelperElement parent;
	public List<XmlHelperElement> children = new ArrayList<XmlHelperElement>();
	public String content = "";
	public XmlHelperElement(String uri, String name, String name2, Attributes atts,
			XmlHelperElement parent,String content) {
		super();
		this.uri = uri;
		this.name = name;
		qName = name2;
		for (int i = 0;atts != null && i < atts.getLength();i += 1)
			this.atts.put(atts.getQName(i),atts.getValue(i));
		this.parent = parent;
		this.content = content;
	}
}
